﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF6CodeFirstMySQL.Model
{
    public class DeliveryNote :BaseBill
    {
        public Contract Contract { get; internal set; }

        public string Checker { get; internal set; }

        public decimal TotalPrice { get; internal set; }

        public decimal? ContractTotalPrice
        {
            get
            {
                decimal? price = null;
                if (Contract != null)
                    price = Contract.TotalPrice;
                return price;
            }
        }
    }
}
